from fastapi import Depends
def RestControllerWithDepends(*args, **kwargs):
    '''
    通过该装饰器把类转换为一个依赖项并返回
    :param args:
    :param kwargs:
    :return:
    '''

    def back(cls):
        # print(get_named_kw_args(cls))
        return Depends(cls)

    return back
